<?php


class UserGroup {

    private $mId;
    private $mName;
    private $mDescription;
    private $mIsEnabled;
    private $mIsLoaded;
    private $mPrivilegeInfo;
    
    public function setId($value){
        $this->mId = $value;
    }
    
    public function getId(){
        return $this->mId;
    }

    public function setName($value){
        $this->mName = $value;
    }
    
    public function getName(){
        return $this->mName;
    }
    
    public function setDescription($value){
        $this->mDescription = $value;
    }
    
    public function getDescription(){
        return $this->mDescription;
    }
    
    public function setIsEnabled($value){
        $this->mIsEnabled = $value;
    }
    
    public function getIsEnabled(){
        return $this->mIsEnabled;
    }
    
    public function setPrivilegeInfo($value){
        $this->mPrivilegeInfo = $value;
    }
    
    public function getPrivilegeInfo(){
        if (($this->mPrivilegeInfo == null)) {
            $PrivilegeInfoDao = new PrivilegeInfoDao();
            $this->mPrivilegeInfo = $PrivilegeInfoDao->getListByGroupId($this->mId);
            }
        return $this->mPrivilegeInfo;
    }
    
    public function setIsLoaded($value){
        $this->mIsLoaded = $value;
    }
    
    public function IsLoaded(){
        return $this->mIsLoaded;
    }
    
}
